-- GENERATED SPELL FOR [Scalebane Lieutenant] --


function spell0_1048(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(16509,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1048', 15000, 1)
end

function spell1_1048(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_1048', 5301, 1)
end

function spell2_1048(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(16145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1048', 30346, 1)
end

function Sorts_1048(pUnit, Event)
local choix_sorts_1048 = math.random(0, 2)
if choix_sorts_1048 == 0 then
pUnit:RegisterEvent('spell0_1048', 1, 1)
end
if choix_sorts_1048 == 1 then
pUnit:RegisterEvent('spell1_1048', 1, 1)
end
if choix_sorts_1048 == 2 then
pUnit:RegisterEvent('spell2_1048', 1, 1)
end
end

function mob1048_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1048', math.random(1500, 3000), 1)
end

function mob1048_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1048_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1048_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1048, 1, 'mob1048_Action')
RegisterUnitEvent(1048, 2, 'mob1048_Leave')
RegisterUnitEvent(1048, 3, 'mob1048_Kill')
RegisterUnitEvent(1048, 4, 'mob1048_Die')
